package ioperations;

import Book.Book;
import Book.BookList;

/**
 * @author ：陈奕安（3048279304@qq.com）
 * @date ：Created in 2025/5/22 15:02
 * @description：
 * @modified By：
 * @version:
 */
public class ShowOperations implements IOPeration {
    @Override
    public void work(BookList bookList) {
        System.out.println("展示图书...");
        int currentSize=bookList.getUsedSize();
        for (int i=0;i<currentSize;i++){
             Book book=bookList.getBook(i);

            System.out.println(book);
        }
    }
}